package com.ruoyi.cat.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 抽奖对象 cat_chances
 * 
 * @author ruoyi
 * @date 2024-12-26
 */
public class CatChances extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 字的名称 */
    @Excel(name = "字的名称")
    private String cardName;

    /** 抽中的几率 */
    @Excel(name = "抽中的几率")
    private BigDecimal chance;

    /** 字的数量 */
    @Excel(name = "字的数量")
    private Long quantity;

    /** 活动表id */
    @Excel(name = "活动表id")
    private Long activityId;

    private String type;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public CatChances() {
       super();
    }

    public CatChances(long l, String name, BigDecimal bigDecimal, long l1, long l2) {
        this.id = l;
        this.cardName = name;
        this.chance = bigDecimal;
        this.quantity = l1;
        this.activityId = l2;
    }


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCardName(String cardName) 
    {
        this.cardName = cardName;
    }

    public String getCardName() 
    {
        return cardName;
    }
    public void setChance(BigDecimal chance) 
    {
        this.chance = chance;
    }

    public BigDecimal getChance() 
    {
        return chance;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setActivityId(Long activityId) 
    {
        this.activityId = activityId;
    }

    public Long getActivityId() 
    {
        return activityId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cardName", getCardName())
            .append("chance", getChance())
            .append("quantity", getQuantity())
            .append("activityId", getActivityId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
